import { TestService } from './../test.service';
import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-top',
  templateUrl: './top.component.html',
  styleUrls: ['./top.component.scss']
})
export class TopComponent implements OnInit {

  constructor(private testService: TestService) {
    this.testService.notify$.subscribe(res => {
      console.log('TopComponent:', res);
    });
  }

  ngOnInit(): void {
  }

}
